home *** CD-ROM | disk | FTP | other *** search
- if(onPress == undefined)
- {
- var tmp;
- onPress = function()
- {
- var _loc3_ = 1;
- _root.fx.attachSound("select");
- _root.fx.start();
- _root["s" + _root.sd_sel].selecionado._visible = false;
- this.selecionado._visible = true;
- _root.sd_sel = 0;
- tmp = tropa1.getLider();
- _root.edSoldado = tmp.getNome();
- _root.edClasse = _root.sd_valores[tmp.getClasse()][CLASSE];
- _root.edNivel = tmp.getNivel();
- _root.edEXP = tmp.getEXP();
- _root.edPV = tmp.getMaxPV();
- _root.edPM = tmp.getMaxPM();
- _root.edATQ = tmp.getATQ();
- _root.edDEF = tmp.getDEF();
- _root.edAGL = tmp.getAGL();
- _root.edINT = tmp.getINT();
- _root.edMRL = tmp.getMRL();
- _root.edCusto = tmp.getCusto();
- while(_loc3_ < 6)
- {
- _root.mini_item["item" + _loc3_].useHandCursor = false;
- if(tropa1.getLider().itens[_loc3_ - 1])
- {
- _root.mini_item["item" + _loc3_].gotoAndStop(tropa1.getLider().itens[_loc3_ - 1].getCod() + 2);
- }
- else
- {
- _root.mini_item["item" + _loc3_].gotoAndStop(1);
- }
- _loc3_ = _loc3_ + 1;
- }
- };
- }
-